﻿using System;

namespace Ops.Mpc.Collections
{
    /// <summary>
    /// This exception is thrown when the ItemName property is null or empty for a NamedItem
    /// </summary>
    public class NamedItemException : Exception
    {
        public NamedItemException(Type itemType) : base( string.Format("ItemName property cannot be null or empty for type {0}", itemType.GetType().Name) )
        {

        }
    }
}
